
<div>
    <ul>
        <?php foreach ($posts as $post): ?>
        <li>
            <?php echo CHtml::link($post->title, array('posts/show', 'id' => $post->id)); ?>
            <span><?php echo date('Y-m-d', $post->created); ?></span>
        </li>
        <?php endforeach; ?>
    </ul>
</div>
